package com.sf.asp.dao;

import com.sf.asp.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sf.asp.entity.vo.MenuVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jins
 * @since 2021-11-24
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    @Select("select * from asp_permission")
    List<MenuVO> listMenu();

    @Select("select * from asp_permission where type != 2")
    List<MenuVO> listMenuParents();


}
